import util from "@/libs/util";

export default ({ request }) => ({
  /**
   * @description 秒杀列表
   * @param {Object} data
   */
  SECKILL_LIST(data = {}) {
    let userinfo = util.store.getItem("userinfo");
    data.user_id = userinfo ? userinfo.user_id : null;

    return request({
      url: "/data/v1/seckillList",
      method: "post",
      data: data,
    });
  },
});
